home
***
CD-ROM
|
disk
|
other
***
search
/
Trusted Irix /B 4.0.4
/
Trusted-Irix B-4.0.1.iso
/
dist
/
eoe1.idb
/
usr
/
tutor
/
.login.z
/
.login
(
.txt
)
Wrap
Text File
|
1992-04-03
|
1KB
|
45 lines
#
# /usr/people/tutor/.login - login script for tutor
#
# This file gets read by the C shell once when the user first logs in and
# once for each shell window that is opened.
#
echo
echo "Welcome to the tutor directory."
echo
# Set-up terminal environment variables.
eval `tset -s -Q`
# Change keyboard control characters to nice values.
if (-t 0) then
stty intr '^C' echoe
endif
# Set default X server
if ($?DISPLAY == 0) then
if ($?REMOTEHOST) then
setenv DISPLAY ${REMOTEHOST}:0
else
setenv DISPLAY :0
endif
endif
# Restore the tutorial directories and supporting WorkSpace files to their
# factory settings.
if (`who | grep tutor | wc -l`x == "1"x) then
echo "Preparing the tutorial..."
find getstart -exec chmod u+w {} \;
find .workspace -exec chmod u+w {} \;
find DoubleClickMe ! -type l -exec chmod u+w {} \;
rm -rf getstart; mkdir getstart
rm -rf .workspace; mkdir .workspace
rm -rf DoubleClickMe; mkdir DoubleClickMe
uncompress -c .getstart | (cd getstart; tar xBf -)
uncompress -c ..workspace | (cd .workspace; tar xBf -)
uncompress -c .DoubleClickMe | (cd DoubleClickMe; tar xBf -)
workspace
sleep 4
echo "Completed."
endif